import {request} from '../utils/http'
//设置请求detail的数据
export const requestDetailData = (skuId) => {
  return request.get(`/api/item/${skuId}`)
}
//添加购物车成功事件
export const addCartSuccessReq = ({skuId, skuNum}) => {
  return request.post(`/api/cart/addToCart/${ skuId }/${ skuNum }`)
}